package guoanmaker.operator.business.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import guoanmaker.operator.business.model.OperatorNaviga;
import guoanmaker.operator.business.repository.OperatorNavigaRepository;
@Service
public class OperatorNavigaService implements OperatorNavigaServiceInterface {
	@Autowired
private OperatorNavigaRepository operatorNavigaRepository;
	@Override
	public OperatorNaviga saveOperatorNaviga(OperatorNaviga operatorNaviga) {
		// TODO Auto-generated method stub
		return operatorNavigaRepository.save(operatorNaviga);
	}
	@Override
	public OperatorNaviga selectOperatorNaviga(String cityCode) {
		// TODO Auto-generated method stub
		return operatorNavigaRepository.findBycityCode(cityCode);
	}

}
